import 'package:flutter/material.dart';

class SettingPanel extends StatelessWidget {

  final String title;
  final String content;
  final Function onTap;

  const SettingPanel({Key key,@required this.title,@required this.content,@required this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListTile(
      title: Text(title),
      trailing: Row(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          Text(content),
          Icon(Icons.chevron_right)
        ],
      ),
      onTap: onTap,
    );
  }
}
